<template>
  <div>御剑乘风来,除魔天地间!==reports
    <el-button @click="btn">按钮==={{qq}}</el-button>
    <input type="text" ref='ipt' style="border:2px  solid  red">
  </div>
</template>
           
<script>
export default {
  data() {
    return {
      arr:[]
    }
  },
  methods:{
    btn(){
      var time=+new Date()
      this.arr.push(time)
      console.log(this.arr,88899);
    }
  },
  computed:{
    qq(){
      if(this.arr.length>0){
        return  this.arr[this.arr.length-1]
      }else{
        return 1111121
      }
      
    }
  },
  mounted(){
    this.$refs.ipt.focus()
    //console.log(ipt,999);
  }
}
</script>
<style scoped>
</style>